package net.xiduth.game.player.dialogues.towns.burthope;


import net.xiduth.game.player.dialogues.Dialogue;


/**
 * 
 * @Author Chaz - Jul 14, 2013
 * 
 * Eohric burthopse castles top servant dialogue.
 */
public class Eohric extends Dialogue {


    private int npcId;
    
    @Override
    public void start() {
        npcId = (Integer) parameters[0];
        sendPlayerDialogue(9827, "Hi.");
    }


    @Override
    public void run(int interfaceId, int componentId) {
        switch (stage) {
        case -1:
            stage = 0;
            sendNPCDialogue(npcId, 9827,
                    "Hello, how can I help you?");
            break;
        case 0:
            stage = 1;
            sendOptionsDialogue("Eohric", "What is this castle?",
                    "Where is the prince?",
                    "No, thanks, I'm just looking around.");
            break;
        case 1:
            switch (componentId) {
            case OPTION_1:
                stage = 2;
                sendPlayerDialogue(9827, "What is this castle?");
                break;
            case OPTION_2:
                stage = 4;
                sendPlayerDialogue(9827, "Where is the prince?");
                break;
            case OPTION_3:
                stage = 5;
                sendPlayerDialogue(9827, "No, thanks, I'm just looking around.");
                break;
            }
            break;
        case 2:
            stage = 3;
            sendNPCDialogue(
                    npcId,
                    9827,
                    "Why, this is the Burthope castle, home to his royal highness. "
                            + "The prince of buthope heir to the throne of asgarnia.");
            break;
        case 3:
            stage = 5;
            sendPlayerDialogue(9827, "Wow.");
            break;
        case 4:
            stage = 5;
            sendNPCDialogue(
                    npcId,
                    9827,
                    "Sorry, but we do not disclose his majest's buisness.");
            break;
        case 5:
            default:
                end();
                break;
        }
    }


    @Override
    public void finish() {
        // TODO Auto-generated method stub
        
    }


}